import { BaseEntity } from "@/types/base";
import { BaseQuery } from "@/types/common/response";

/**
 * 项目查询对象
 */
export interface ProjectQuery {
  projectName?: string;
  projectCode?: string;
  status?: string;
  startDate?: string;
  endDate?: string;
  beginStartDate?: string;
  endStartDate?: string;
  beginEndDate?: string;
  endEndDate?: string;
  pageNum: number;
  pageSize: number;
}

/**
 * 项目视图对象
 */
export interface ProjectVO extends BaseEntity {
  projectId?: number;
  projectCode: string;
  projectName: string;
  managerId?: number;
  projectManager: string;
  startDate: string;
  endDate: string;
  totalBudget: number;
  totalManMonths: number;
  usedManMonths: number;
  status: string;
  projectDesc?: string;
  remark?: string;
}

/**
 * 项目表单对象
 */
export interface ProjectForm {
  projectId?: number;
  projectCode: string;
  projectName: string;
  managerId?: number;
  projectManager: string;
  startDate: string;
  endDate: string;
  totalBudget: number;
  totalManMonths: number;
  usedManMonths: number;
  status: string;
  projectDesc?: string;
  remark?: string;
}

/**
 * 项目请求对象
 */
export interface ProjectRequest extends ProjectForm {
  projectId?: number;
}
